package com.raven.craft.code.generator.project.antijson.type;

import com.google.common.collect.Sets;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Set;

@Getter
@Setter
@ToString
public abstract class BasicType implements Type {
    protected Class<?> type;

    @Override
    public Set<String> getImports() {
        return Sets.newHashSet(type.getName());
    }

    @Override
    public String getName() {
        return type.getSimpleName();
    }

}